import axios from 'axios';



let baseURL = '';
export const postRequest = (url, param)=>{
    return axios({
        method : 'post',
        url :`${baseURL}${url}`,
        data:param
    });
}

export const putRequest = (url, param)=>{
    return axios({
        method : 'put',
        url :`${baseURL}${url}`,
        data:param
    });
}

export const getRequest = (url, param)=>{
    return axios({
        method : 'get',
        url :`${baseURL}${url}`,
        data:param
    });
}

export const deleteRequest = (url, param)=>{
    return axios({
        method : 'delete',
        url :`${baseURL}${url}`,
        data:param
    });
}